-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change databaseState in longTermRetention.json to longTermRetentionDatabaseState #2693
Conversation
This change adds the swagger documentation for the Long Term Retention V2 feature along with examples for each of the APIs.. This includes the following APIs: Get an LTR Backup Get all LTR Backups under a database Get all LTR Backups under a server Get all LTR Backups under a location Delete an LTR Backup Set a database's LTR Policy Get a database's LTR Policy
This update is a response to the few comments that Anu left on the PR. It removes an empty properties entry and updates the retention descriptions to explain that they use an ISO 8601 standard.
Made some slight changes to the entity names to better align with LTR V1 and added some better descriptors to some property descriptions.
The weekOfYear parameter is not in an ISO 8601 format, it is just an integer between 1 and 52. Fixing that accordingly.
Need to remove backupLongTermRetentionPolicies so it doesn't conflict with the new backupLongTermRetentionPolicies.
Need to remove the reference to backupLongTermRetentionPolicies.json in the readme.
Updated the resource ID for longTermRetentionBackups so servers and databases are now longTermRetentionServers and longTermRetentionDatabases, respectively. This better aligns with REST.
LongTermRetentionPolicyGet.json was accidentally deleted in the last commit.
Made some changes to the examples to fix the Travis CI errors.
…ies to BackupLongTermRetentionPolicies
This reverts commit 3b80fa0.
This reverts commit b98cf6c.
…licy to BackupLongTermRetentionPolicy to keep it consistent
Automation for azure-sdk-for-nodeNothing to generate for azure-sdk-for-node |
Automation for azure-sdk-for-pythonThe initial PR has been merged into your service PR: |
Automation for azure-libraries-for-javaA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
@@ -317,7 +317,7 @@ | |||
"Deleted" | |||
], | |||
"x-ms-enum": { | |||
"name": "databaseState", | |||
"name": "longTermRetentionDatabaseState", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we're at it consider creating a common definition for this parameter in the parameters
/definitions
section thus avoiding duplication
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have swagger generator so for now it's easier to keep it duplicated rather than manually edit :)
Automation for azure-sdk-for-goA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
@@ -317,7 +317,7 @@ | |||
"Deleted" | |||
], | |||
"x-ms-enum": { | |||
"name": "databaseState", | |||
"name": "longTermRetentionDatabaseState", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have swagger generator so for now it's easier to keep it duplicated rather than manually edit :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information
api-version
in the path should match theapi-version
in the spec).Quality of Swagger